package games.hearthstone;

public class CompleteSet {
	public static void main(String[] args) {

		int tries = 10000;
		int max = 0;
		int min = Integer.MAX_VALUE;
		int count = 0;
		int lessthan = 0;

		for (int j = 0; j < tries; j++) {
			if (j % (tries/100) == 0) {
				System.out.println(j*100/tries);
			}

			// Playset playset = new Playset();
			Playset playset = Utils.getCurrentPlayset();
			int packsOpened = 0;
			while (!playset.canComplete()) {
				packsOpened++;
				playset.addPacks(1);
			}

			max = Math.max(max, packsOpened);
			min = Math.min(min, packsOpened);
			count+=packsOpened;
			if (packsOpened <= 120) {
				lessthan++;
			}
		}
		System.out.println();
		System.out.println("min " + min + " " + (float)min/40*50);
		System.out.println("avg " + (count/tries) + " " + (float)(count/tries)/40*50);
		System.out.println("max " + max + " " + (float)max/40*50);
		System.out.println("lessthan " + ((float)lessthan/tries));
	}
}
